package org.blog.entity.param;

import lombok.Data;

/**
 * 分页参数
 */
@Data
public class PageParam {

    private Integer pageSize;

    private Integer pageNum;


    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        if (pageSize == null) {
            pageSize = 10;
        }
        this.pageSize = pageSize;
    }

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        if (pageNum == null) {
            pageNum = 1;
        }
        this.pageNum = pageNum;
    }
}
